public class DogTest {
    public static void main(String[] args){
        Dog g = new Dog();
        g.setColor("Yellow");
        getInfo(g);
    }

    public static void getInfo(Dog d){
        System.out.println(d.toString());
    }
}